import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JButton;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridBagLayout;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JTable;
import javax.swing.JScrollBar;
import javax.swing.LayoutStyle.ComponentPlacement;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import com.toedter.calendar.JDateChooser;


public class Vinh extends JPanel {
	private JTable table;
	private JTextField textField;
	private JTextField textField_2;
	private JTextField textField_1;
	private JTextField textField_3;

	/**
	 * Create the panel.
	 */
	public Vinh() {
		setLayout(new BorderLayout(0, 0));
		
		JPanel panel = new JPanel();
		add(panel, BorderLayout.WEST);
		panel.setPreferredSize(new Dimension(280,0));
		GridBagLayout gbl_panel = new GridBagLayout();
		gbl_panel.columnWidths = new int[]{0, 0, 0, 0};
		gbl_panel.rowHeights = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 69, 0, 0};
		gbl_panel.columnWeights = new double[]{0.0, 0.0, 1.0, Double.MIN_VALUE};
		gbl_panel.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, Double.MIN_VALUE};
		panel.setLayout(gbl_panel);
		
		JLabel lblHVTn = new JLabel("H\u1ECD v\u00E0 t\u00EAn:");
		GridBagConstraints gbc_lblHVTn = new GridBagConstraints();
		gbc_lblHVTn.insets = new Insets(0, 0, 5, 5);
		gbc_lblHVTn.anchor = GridBagConstraints.EAST;
		gbc_lblHVTn.gridx = 1;
		gbc_lblHVTn.gridy = 1;
		panel.add(lblHVTn, gbc_lblHVTn);
		
		textField = new JTextField();
		GridBagConstraints gbc_textField = new GridBagConstraints();
		gbc_textField.insets = new Insets(0, 0, 5, 0);
		gbc_textField.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField.gridx = 2;
		gbc_textField.gridy = 1;
		panel.add(textField, gbc_textField);
		textField.setColumns(10);
		
		JLabel lblQuQun = new JLabel("Qu\u00EA qu\u00E1n:");
		GridBagConstraints gbc_lblQuQun = new GridBagConstraints();
		gbc_lblQuQun.anchor = GridBagConstraints.EAST;
		gbc_lblQuQun.insets = new Insets(0, 0, 5, 5);
		gbc_lblQuQun.gridx = 1;
		gbc_lblQuQun.gridy = 3;
		panel.add(lblQuQun, gbc_lblQuQun);
		
		textField_2 = new JTextField();
		GridBagConstraints gbc_textField_2 = new GridBagConstraints();
		gbc_textField_2.insets = new Insets(0, 0, 5, 0);
		gbc_textField_2.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_2.gridx = 2;
		gbc_textField_2.gridy = 3;
		panel.add(textField_2, gbc_textField_2);
		textField_2.setColumns(10);
		
		JLabel lblChcV = new JLabel("Ch\u1EE9c v\u1EE5:");
		GridBagConstraints gbc_lblChcV = new GridBagConstraints();
		gbc_lblChcV.insets = new Insets(0, 0, 5, 5);
		gbc_lblChcV.gridx = 1;
		gbc_lblChcV.gridy = 5;
		panel.add(lblChcV, gbc_lblChcV);
		
		textField_1 = new JTextField();
		GridBagConstraints gbc_textField_1 = new GridBagConstraints();
		gbc_textField_1.insets = new Insets(0, 0, 5, 0);
		gbc_textField_1.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_1.gridx = 2;
		gbc_textField_1.gridy = 5;
		panel.add(textField_1, gbc_textField_1);
		textField_1.setColumns(10);
		
		JLabel lblLng = new JLabel("L\u01B0\u01A1ng:");
		GridBagConstraints gbc_lblLng = new GridBagConstraints();
		gbc_lblLng.insets = new Insets(0, 0, 5, 5);
		gbc_lblLng.gridx = 1;
		gbc_lblLng.gridy = 7;
		panel.add(lblLng, gbc_lblLng);
		
		textField_3 = new JTextField();
		GridBagConstraints gbc_textField_3 = new GridBagConstraints();
		gbc_textField_3.insets = new Insets(0, 0, 5, 0);
		gbc_textField_3.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_3.gridx = 2;
		gbc_textField_3.gridy = 7;
		panel.add(textField_3, gbc_textField_3);
		textField_3.setColumns(10);
		
		JLabel lblGiiTnh = new JLabel("Gi\u1EDBi t\u00EDnh");
		GridBagConstraints gbc_lblGiiTnh = new GridBagConstraints();
		gbc_lblGiiTnh.insets = new Insets(0, 0, 5, 5);
		gbc_lblGiiTnh.gridx = 1;
		gbc_lblGiiTnh.gridy = 9;
		panel.add(lblGiiTnh, gbc_lblGiiTnh);
		
		JRadioButton rdbtnNam = new JRadioButton("Nam");
		GridBagConstraints gbc_rdbtnNam = new GridBagConstraints();
		gbc_rdbtnNam.insets = new Insets(0, 0, 5, 5);
		gbc_rdbtnNam.gridx = 1;
		gbc_rdbtnNam.gridy = 10;
		panel.add(rdbtnNam, gbc_rdbtnNam);
		
		JRadioButton rdbtnN = new JRadioButton("N\u1EEF");
		GridBagConstraints gbc_rdbtnN = new GridBagConstraints();
		gbc_rdbtnN.insets = new Insets(0, 0, 5, 0);
		gbc_rdbtnN.gridx = 2;
		gbc_rdbtnN.gridy = 10;
		panel.add(rdbtnN, gbc_rdbtnN);
		
		JLabel lblNgySinh = new JLabel("Ng\u00E0y sinh:");
		GridBagConstraints gbc_lblNgySinh = new GridBagConstraints();
		gbc_lblNgySinh.insets = new Insets(0, 0, 5, 5);
		gbc_lblNgySinh.gridx = 1;
		gbc_lblNgySinh.gridy = 12;
		panel.add(lblNgySinh, gbc_lblNgySinh);
		
		JDateChooser dateChooser = new JDateChooser();
		dateChooser.setDateFormatString("dd/MM/yyyy");
		GridBagConstraints gbc_dateChooser = new GridBagConstraints();
		gbc_dateChooser.insets = new Insets(0, 0, 5, 0);
		gbc_dateChooser.fill = GridBagConstraints.BOTH;
		gbc_dateChooser.gridx = 2;
		gbc_dateChooser.gridy = 12;
		panel.add(dateChooser, gbc_dateChooser);
		
		JPanel panel_1 = new JPanel();
		add(panel_1, BorderLayout.CENTER);
		
		table = new JTable();
		
		JScrollBar scrollBar = new JScrollBar();
		GroupLayout gl_panel_1 = new GroupLayout(panel_1);
		gl_panel_1.setHorizontalGroup(
			gl_panel_1.createParallelGroup(Alignment.LEADING)
				.addGroup(Alignment.TRAILING, gl_panel_1.createSequentialGroup()
					.addComponent(table, GroupLayout.DEFAULT_SIZE, 377, Short.MAX_VALUE)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(scrollBar, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
		);
		gl_panel_1.setVerticalGroup(
			gl_panel_1.createParallelGroup(Alignment.LEADING)
				.addComponent(scrollBar, GroupLayout.DEFAULT_SIZE, 500, Short.MAX_VALUE)
				.addComponent(table, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 500, Short.MAX_VALUE)
		);
		panel_1.setLayout(gl_panel_1);

	}
}
